<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/public.css" rel="stylesheet">
    <title>留言板</title>
</head>
<body>



   

    

                <c:forEach items="${listmessage }" var="message">
                	<div class="panel panel-body">
	                    <div class="comment">
	                        <img src="img/user.png">
	                        <div class="comment-content">
	                            <span>${message.user.username}&nbsp; ${message.time} </span>
	                            <p>${message.content}</p>
	                        </div>
	                    </div>
                	</div>
                </c:forEach>
            </div>

        </div>

       


</body>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</html>
